package com.CampusLife.service;

import com.CampusLife.bean.Admin;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface IAdminService {
    List<Admin> queryAll();

    Admin queryById(Integer mid);

    void add(Admin admin);

    void update(Admin admin);

    void delete(Integer mid);

    Admin login(@Param("mname") String mname, @Param("password") String password);

    //用户修改密码
    int UpdatePassword(Admin mid);

    void  UpdateAdminPassword(Admin admin);
}
